package com.apiit.webserviceclient.activities;

import com.apiit.webserviceclient.R;
import com.apiit.webserviceclient.R.layout;
import com.apiit.webserviceclient.R.menu;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.widget.EditText;

public class TestPage extends Activity {

	EditText txt1;
	EditText txt2;
	String search;
	String type;
	String cat;
	String check;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_test_page);

		txt1 = (EditText) findViewById(R.id.editText1);
		txt2 = (EditText) findViewById(R.id.editText2);

		Intent intename = getIntent();
		search = intename.getStringExtra("search");
		type = intename.getStringExtra("type");
		cat = intename.getStringExtra("cat");
		check = intename.getStringExtra("Check");
		
		txt1.setText(search);
		txt2.setText(check);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.test_page, menu);
		return true;
	}

}
